package com.gitee.feizns.wx.service.wechat;

import lombok.Data;

/**
 * @author feizns
 * @since 2019/4/12
 */
@Data
public class Message {

    /**
     * 成功码
     */
    public static final int SUCCESS_CODE = 0;

    /**
     * 微信返回错误编码
     */
    private Integer errcode;

    /**
     * 微信返回错误消息
     */
    private String errmsg;

    public boolean isFail() {
        return new Integer(0).equals(errcode);
    }

}
